/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 10px 20px;
}

/* 顶部导航栏 */
.header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    margin-right: 20px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.system-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

/* 主内容区域 */
.main-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    flex: 1;
    gap: 10px;
    margin: 0 auto;
}

/* 系统简介区域 */
.system-intro {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.intro-title {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f5f9;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #444;
    line-height: 1.8;
}

.intro-features {
    list-style: none;
    padding-left: 20px;
}

.intro-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #555;
}

.intro-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 登录表单区域 */
.login-container {
    flex: 0 0 400px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-title {
    font-size: 1.8rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f5f9;
}

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9fbfd;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}


.captcha-container {
    display: flex; 
    gap: 10px; 
    align-items: center;
}

.captcha-image-container img {
    height: 48px; 
    width: 120px; 
    cursor: pointer; 
    border-radius: 8px; 
    background-color: #f9fbfd;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 1px;
}

.login-button:hover {
    background: linear-gradient(to right, #2980b9, #2573a7);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.login-tip {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 失败提示样式 */
.error-message {
    margin-top: 10px;
    color: #e74c3c;
    text-align: center;
    display: none;
}

/* 成功提示样式 */
.success-message {
    margin-top: 10px;
    color: #27ae60;
    text-align: center;
    display: none;
}

/* 页脚信息 */
.footer {
    text-align: center;
    padding: 10px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
    }
    
    .login-container {
        flex: 1;
    }
    
    .system-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .system-intro, .login-container {
        padding: 25px;
    }
}


/* 协议链接样式 */
.agreement-links {
    text-align: center;
    margin-top: 10px;
}
.agreement-links a {
    color: #0066cc;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
}
.agreement-links a:hover {
    text-decoration: underline;
}

/* 弹窗背景 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 弹窗内容 */
.modal-content {
    background-color: white;
    width: 80%;
    max-width: fit-content;
    max-height: 80vh;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    overflow-y: auto;
}

/* 关闭按钮 */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    border: none;
    background: none;
    color: #333;
}

/* 协议标题 */
.modal-title {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* 协议内容 */
.agreement-content {
    margin-top: 15px;
    line-height: 2;
    color: #666;
}
